package strategy;

public class TravelContext {
    private TravelStrategy travelStrategy;

    public TravelContext(TravelStrategy travelStrategy) {
        this.travelStrategy = travelStrategy;
    }
    public void select(){
        travelStrategy.travel();
    }

    public static void main(String[] args) {
        TravelContext travelContext = new TravelContext(new Rocket());
        travelContext.select();
    }
}
